package com.example.tests;

import org.testng.annotations.Test;

public class GroupCreationTests extends TestBase {
	@Test
	public void TestNonEmptyGroupCreation() throws Exception {
		openMainPage();
		openGroupsPage();
		initNewGroupCreation();
		GroupData group = new GroupData();
		group.name = "group name 1";
		group.header = "header 1";
		group.footer = "footer 1";
		fillGroupForm(group);
		submitGroupCreation();
		returnToGroupsPage();
	}
	
	@Test
	public void TestEmptyGroupCreation() throws Exception {
		openMainPage();
		openGroupsPage();
		initNewGroupCreation();
		fillGroupForm(new GroupData("", "", ""));
		submitGroupCreation();
		returnToGroupsPage();
	}
	
	@Test
	public void TestContact() throws Exception {
		openMainPage();
		findNew();
		fillContact();
		clickonSubmit();
		clickonHomePage();
	}
		
}




